import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * @author gao
 * @date 2025/8/11 15:39
 */

public class Demo1 {
    public static void main(String[] args) {
        try (OutputStream outputStream = new FileOutputStream("./test.txt")) {
            // “你好”的ascii码值
            outputStream.write(0xe4);
            outputStream.write(0xbd);
            outputStream.write(0xa0);
            outputStream.write(0xe5);
            outputStream.write(0xa5);
            outputStream.write(0xbd);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}